/* LoadingWindow
 *
 * Init()
 * Show()
 * Hide()
 */

/// <reference path="../base.js" />
/// <reference path="./window.js" />
/// <reference path="../3rdParty/Mootools-Core.js" />
/// <reference path="../3rdParty/Mootools-More.js" />
/// <reference path="../3rdParty/Clientcide.js" />

var LoadingWindow = {};
LoadingWindow.Init = function()
{
  LoadingWindow.Window = new UIWindow({ name: "LoadingWindow",
    caption: "Loading",
    content: "<img src='./images/loading_bar.gif'><br /><span style='font-size: 150%; text-align: center;'>Loading...</span>",
    modal: true,
    closeButton: false
  });
}

window.addEvent("domready", function() { LoadingWindow.Init(); });
LoadingWindow.Show = function()
{
  if (!LoadingWindow.Window)
    LoadingWindow.Init();
    
  LoadingWindow.Window.show();
}
LoadingWindow.Hide = function()
{
  LoadingWindow.Window.hide();
}